Ektron CMS400.Net Reference

>>Helping Users Navigate Your Web Site > Collections > Collection Server Control > Retrieving the XML Structure of a Collection

Retrieving the XML Structure of a Collection

Retrieving the XML structure of a collection allows for greater control over developing XSLs. The following is an example of how to do that.

  1. Open a new Web form.
  2. Drag and drop a Collection server control onto it.
  3. Set the DefaultCollectionID property.
  4. Drag and drop a Textbox on the Web form.
  5. Set the TextMode property to MultiLine.

    Note: Set the text box width to at least 400px.

  6. On the code behind page, add the following line.

    Textbox1.Text = Collection1.XmlDoc.InnerXml

  7. Build the project.
  8. View the Web form in a browser.
  9. The XML structure of the collection appears in the textbox.

For an additional example, see the Collection XML page on the CMS400Developer samples page. It is located at:


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.